package com.yc.chaoshi.cs_order.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yc.chaoshi.entity.PmsGoods;
import com.yc.chaoshi.entity.UmsUserAddres;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
@Data
public class GoodsAndAdress {
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;


    /**
     * 订单项目id
     */
    private Integer orderitemId;

    /**
     * 配送方式(0自有物流 1顾客自提)
     */
    private Integer deliveryWay;

    /**
     * 地址id
     */
    private Integer adressId;

    /**
     * 订单状态0-待付款1-待发货2-已发货3-已完成4-无效订单）
     */
    private Integer confirmStatus;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    /**
     * 总金额
     */
    private Integer sumCount;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime payTime;

    /**
     * 0禁用 1启用
     */
    private Integer status;

    private List<PmsGoods> Goods;

    private UmsUserAddres umsAddres;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getOrderitemId() {
        return orderitemId;
    }

    public void setOrderitemId(Integer orderitemId) {
        this.orderitemId = orderitemId;
    }

    public Integer getDeliveryWay() {
        return deliveryWay;
    }

    public void setDeliveryWay(Integer deliveryWay) {
        this.deliveryWay = deliveryWay;
    }

    public Integer getAdressId() {
        return adressId;
    }

    public void setAdressId(Integer adressId) {
        this.adressId = adressId;
    }

    public Integer getConfirmStatus() {
        return confirmStatus;
    }

    public void setConfirmStatus(Integer confirmStatus) {
        this.confirmStatus = confirmStatus;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getSumCount() {
        return sumCount;
    }

    public void setSumCount(Integer sumCount) {
        this.sumCount = sumCount;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<PmsGoods> getGoods() {
        return Goods;
    }

    public void setGoods(List<PmsGoods> goods) {
        Goods = goods;
    }

    public UmsUserAddres getUmsAddres() {
        return umsAddres;
    }

    public void setUmsAddres(UmsUserAddres umsAddres) {
        this.umsAddres = umsAddres;
    }
}
